java printf double 2 decimal places

100

print up to 2 decimal in java -

System.out.printf("%.2f", value);

Comments

Submit
0 Comments